//
//  GLGameModel.h
//  QAQ打飞机
//
//  Created by admin on 15/8/28.
//  Copyright (c) 2015年 gl. All rights reserved.
//
//游戏模型
#import <UIKit/UIKit.h>
#import "GLHero.h"
#import "GLEnemy.h"
#import "GLEquipVV.h"

@interface GLGameModel : NSObject
//工厂方法
+(id)gameModelWithArea:(CGRect)gameArea size:(CGSize)heroSize;
//游戏区域
@property(assign,nonatomic) CGRect gameArea;
//游戏得分
@property(assign,nonatomic) NSInteger gameScore;
//炸弹数
@property(assign,nonatomic) NSInteger bombsount;
//游戏背景属性及方法
//背景的边框
@property(assign,nonatomic) CGRect backFrame1;
@property(assign,nonatomic) CGRect backFrame2;

//背景向下移动的方法
-(void)backMoveDown;

//英雄属性及方法
//英雄
@property(strong,nonatomic)GLHero *hero;
#pragma mark -创建敌机
-(GLEnemy *)createEnemyWithType:(GLEnemytype)type size:(CGSize)size;
#pragma mark -掉落物品
-(GLEquipVV *)createEquipWithType:(GLEquipType)type size:(CGSize)size;
#pragma mark -排行榜

@end
